package com.vgulu.server.common.BaseDao;

import java.util.Map;

/**
 * Created by wangchunsee on 16/8/25.
 */
public class IdPage {
    public static void dueId(Integer minId,Integer maxId,int pageSize, Map query){
        if (minId!=null){
            query.put("minId",minId);
        }else {
            query.put("minId",0);
        }
        if (maxId!=null&&maxId>0){
            query.put("maxId",maxId);
        }else {
            query.put("maxId",Integer.MAX_VALUE);
        }
        query.put("pageSize",pageSize);
    }
}
